Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support data instance class for user usage, and add test cases for model serialization #6

Open
wants to merge 5 commits into
base: gearpump
Choose a base branch
from

Conversation

gy910210
Copy link

No description provided.

@gy910210
Copy link
Author

@clockfly
Support user input instances, and I add test cases for model serialization.

@gy910210
Copy link
Author

@clockfly
How about DataInstance ?

@clockfly
Copy link
Member

Sounds good!

@gy910210 gy910210 changed the title Support user input instance. Support data instance class for user usage, and add test cases for model serialization Feb 26, 2016

import org.apache.samoa.learners.DataInstance;

public class NominalDataInstance implements DataInstance {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add document about what it is.

@gy910210
Copy link
Author

gy910210 commented Mar 4, 2016

@clockfly

I changed the design, there are only ClassificationDataInstance and ClusterDataInstance now, and the corresponding ClassificationModel and ClusterModel. It can do type check in the compile time now. You can review it.

@@ -1,4 +1,4 @@
package org.apache.samoa.learners;
package org.apache.samoa.learners.clusterers;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo clusterers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants